﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="list_nghiphep.aspx.cs" Inherits="list_nghiphep" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxtoolkit" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Thong tin nghi phep</title>
     <link href="styles/style.css" rel="stylesheet" type="text/css" /> 
    
</head>
<body>
       <form id="form1" runat="server">

    <div class="wrapper">
         <div id="header">
		<h1 class="logo">
        <a href="index.aspx">
        	<img src="images/logo.png" width="280" height="46" border="0" /></a>
        
        </h1>
         <div class="login_zone" >
                Username:<asp:Literal ID="lUsername" Text="" runat="server" />
                <br />
                 <asp:LinkButton ID="lnkLogout" runat="server" Text="Logout" 
                    onclick="lnkLogout_Click" /> | <a href="../users/change_pass.aspx">Change password</a>
        </div>
        </div>

     <div id="nav">
      <div style="margin-bottom:20px;width:300px;float:left;">
              <ul class="breadcrumb">
        <li>
            <a href="index.aspx" title="Home">
         
                 <img src="images/home.png" width="24" height="23" border="0" align="left" style="margin-top:2px;" class="home" />
      
            </a>
              
            </li>
            <li>
            <a href="index.aspx"   title="homepage">
                Homepage
                </a>
            </li>
        <li>
            
               Thông tin nghỉ phép
            
       </li>
      
     </ul>
     </div>
        </div>
    <div class="main_content2">
       <div style="margin-top:-8px;">
             <img src="images/thongtin_nghiphep.png" width="900" height="77" />
           </div>
           <br /><br />
           <div style="padding-left:20px;padding-bottom:20px;width:880px;line-height:150%;float:left;text-align:left;">
               <img src="images/bullet.png" width="8" height="9" border="0" /> Họ tên: <asp:Literal ID="lFullName" runat="server"></asp:Literal>
                <br />
                  
                <img src="images/bullet.png" width="8" height="9" border="0" /> Số ngày nghỉ đã sử dụng:
                <div>
                    <ul>
                        <li>
                            Phép năm:
                            <asp:Label ID="lPhepNam" runat="server"></asp:Label>
                        </li>
                        <li>
                            Phép đặc biệt:
                            <asp:Label ID="lNghiDacBiet" runat="server" Text=""></asp:Label>
                        </li>
                        <li>
                            Nghỉ ốm:
                            <asp:Label ID="lNghiOm" runat="server" Text=""></asp:Label>
                        </li>
                        <li>
                            Nghỉ không hưởng lương:
                            <asp:Label ID="lNghiKhongHuongLuong" runat="server" Text=""></asp:Label>
                        </li>
                    </ul>
                </div>
                
           </div>
            <br />
             <br />
           <div style="width:900px;height:auto;margin:0 auto;padding-left:10px;clear:both;">
               <dx:ASPxGridView ID="gdNghiPhep" runat="server" AutoGenerateColumns="False" 
                   Width="880px" 
                   ClientInstanceName="gridNghiPhep" onhtmlrowcreated="gdNghiPhep_HtmlRowCreated">
                   <TotalSummary>
                       <dx:ASPxSummaryItem DisplayFormat="Total: {0}" FieldName="songaynghi" SummaryType="Sum" />
                   </TotalSummary>
                   <Columns>
                       <dx:GridViewCommandColumn Caption="Operators" ShowSelectCheckbox="false" 
                           VisibleIndex="0" Visible="False">
                             <CustomButtons>                             
                                
                                <dx:GridViewCommandColumnCustomButton ID="btnEdit" Text="Edit"  ></dx:GridViewCommandColumnCustomButton>
                                
                                
                                
                                <dx:GridViewCommandColumnCustomButton ID="btnDelete" Text="Delete"></dx:GridViewCommandColumnCustomButton>
                                
                            
                            </CustomButtons>
                       </dx:GridViewCommandColumn>
                       <dx:GridViewDataTextColumn VisibleIndex="1" FieldName="dv" Caption="Trưởng phòng" 
                           Width="90px">
                        
                        
                       </dx:GridViewDataTextColumn>
                       <dx:GridViewDataTextColumn VisibleIndex="2" FieldName="ns" Caption="Nhân sự" 
                           Width="70px">
                        
                        
                       </dx:GridViewDataTextColumn>
                       <dx:GridViewDataTextColumn VisibleIndex="3" FieldName="gd" Caption="Giám đốc" 
                           Width="70px">
                        
                        
                       </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="ID" VisibleIndex="4" FieldName="id" 
                           Visible="false">
                        </dx:GridViewDataTextColumn>
                       <dx:GridViewDataTextColumn Caption="Nghỉ từ ngày" VisibleIndex="5" 
                           FieldName="nghipheptungay" Width="84px">
                            <PropertiesTextEdit DisplayFormatString="dd-MM-yyyy">
                           </PropertiesTextEdit>
                           
                       </dx:GridViewDataTextColumn>
                       <dx:GridViewDataTextColumn Caption="Nghỉ đến ngày" VisibleIndex="6" 
                           FieldName="nghiphepdenngay" Width="90px">
                       <PropertiesTextEdit DisplayFormatString="dd-MM-yyyy"></PropertiesTextEdit>
                           <PropertiesTextEdit DisplayFormatString="dd-MM-yyyy">
                           </PropertiesTextEdit>
                       </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Số ngày nghỉ" VisibleIndex="7" FieldName="songaynghi">
                            </dx:GridViewDataTextColumn>
                       <dx:GridViewDataTextColumn Caption="Thời gian nghỉ" VisibleIndex="8" 
                           FieldName="thoigiannghi" Width="120px">
                        
                           <CellStyle HorizontalAlign="Left">
                           </CellStyle>
                        
                       </dx:GridViewDataTextColumn>
                       <dx:GridViewDataTextColumn Caption="Loại phép" VisibleIndex="9" 
                           FieldName="loaiphep" Width="140px">
                           <CellStyle HorizontalAlign="Left">
                           </CellStyle>
                       </dx:GridViewDataTextColumn>
                       <dx:GridViewDataTextColumn Caption="Ngày đăng ký" VisibleIndex="10" 
                           FieldName="ngaydangky" Width="110px">
                         <PropertiesTextEdit DisplayFormatString="dd-MM-yyyy"></PropertiesTextEdit>
                           <Settings AllowSort="True" />
                       </dx:GridViewDataTextColumn>
                       <dx:GridViewDataTextColumn Caption="Lý do nghỉ" VisibleIndex="11" Width="200px" 
                           FieldName="lydo">
                            
                           <CellStyle HorizontalAlign="Left">
                           </CellStyle>
                            
                       </dx:GridViewDataTextColumn>
                   </Columns>
                    
                   <Settings ShowHorizontalScrollBar="True" ShowFooter="True" />
                    
               </dx:ASPxGridView>   
           </div>
        <asp:Panel ID="panelEdit" runat="server">    
            <ajaxtoolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            </ajaxtoolkit:ToolkitScriptManager>
         <br />
            <table style="width: 500px; background-color: #ffffdd;filter: alpha(opacity=0.9);opacity: 0.9;" >
            <tr>
                <td>
                
                    &nbsp; </td>
            
            </tr>
         </table>
        </asp:Panel>
        
         <asp:LinkButton ID="lnkFake" runat="server"></asp:LinkButton>
        <ajaxtoolkit:modalpopupextender  ID="popupEdit" runat="server"
                     PopupControlID="panelEdit" TargetControlID="lnkFake" />
       
    
     </div>
     
</div>     
     </form>
</body>
</html>
